package com.gx.server.model.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gx.server.model.domain.ExamCollect;
import com.gx.server.model.domain.ExamQuestion;

import java.util.List;

/**
 * @author Dobby
 * @version 1.0
 */
public interface ExamCollectService  extends IService<ExamCollect> {

    //根据用户id 增加题目收藏
    String add_collect(Long id,int Collect_id);

//    根据用户id 删除题目收藏
    Boolean del_collect(Long id,int Collect_id);


//    根据用户id 查询所有的题目收藏
    List<ExamQuestion> all_collect(Long id);

    int CollectByUserId(Long id, int questuinId);


//    根据用户id 清空收藏
    Boolean del_all_collect(Long id);

}
